//
//  DowningLoadTableViewCell.m
//  JiuKuGospel
//
//  Created by jiukuyinyue on 15-11-9.
//  Copyright (c) 2015年 JiuKuForApp. All rights reserved.
//

#import "DowningLoadTableViewCell.h"
//#import "JKFileModel.h"

@implementation DowningLoadTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void)setSizeStr:(NSString *)sizeStr
{
//    [self setupUI:sizeStr];
}

- (void)setFileInfo:(JKFileModel *)fileInfo
{
//    [self setupUI:fileInfo];
}

- (void)setCreateStr:(NSString *)createStr
{
    [self setupUI:nil];
}

- (void)setupUI:(JKFileModel *)sizeStr
{
    self.backgroundColor = [UIColor clearColor];
    [self.allView removeFromSuperview];
    self.allView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, self.width, self.height)];
    [self addSubview:self.allView];
    
    self.songNameLabel = [[UILabel alloc] initWithFrame:CGRectMake(15, 5, _allView.width-80, 25)];
//    _songNameLabel.text = @"求主给我一颗心";
    _songNameLabel.font = FONT_16;
    [_allView addSubview:_songNameLabel];

    //http://my.oschina.net/u/2340880/blog/402223
    self.downValueProgress = [[UIProgressView alloc] initWithFrame:CGRectMake(_songNameLabel.left, _songNameLabel.bottom+5, _allView.width-2*15, 2)];
    _downValueProgress.progress = 0;
    _downValueProgress.progressTintColor = JK_RED_COLOR;
    _downValueProgress.trackTintColor = JK_HUISE_LINE_COLOR;
    [_allView addSubview:_downValueProgress];
    
    self.sizeLabel = [[UILabel alloc] initWithFrame:CGRectMake(_allView.width-80, 5, 70, 20)];
//    _sizeLabel.text = [NSString stringWithFormat:@"%0.1fM/%0.1fM", 1.2, 3.6];
    _sizeLabel.font = FONT_12;
    [_allView addSubview:_sizeLabel];
}

@end
